<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html id="gray_html">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
        <meta content="telephone=no" name="format-detection">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>e美家</title>
        <link rel="stylesheet" type="text/css" href="/meirong/Public/Wechat/api/css/work.css"/>
	</head>
<body>
	<header id="header">
		<span id="goback_icon" onclick="history.back(-1)"></span>
		<span>订单详情</span>
	</header>
	<div class="container">
		<div id="order_detail">
			<div id="od_tip">
				<span>订单编号：<?php echo ($res["ordernumber"]); ?></span>
				<span class="od_service_type <?php if(0 == 0): ?>st_home<?php endif; if(0 == 1): ?>st_lbs<?php endif; ?> ">
					<span class="st_icon"></span>
					<?php if($res['service_type'] == 0): ?>上门<?php endif; ?>
					<?php if($res['service_type'] == 1): ?>体验店<?php endif; ?>
				</span>
				<div class="clear"></div>
			</div>
			<div id="od_info">
				<div class="orders_img">
					<img src="http://192.168.1.122/meirong/Public/Wechat/api/images/step.png" />
				</div>
				<div>
					<p class="oproject_name"><?php echo ($res["oproject_name"]); ?></p>
					<p class="oproject_data">数量：<?php echo ($res["oproject_data"]); ?><span>￥<?php echo ($res["oproject_price"]); ?></span></p>
				</div>
				<div class="clear"></div>
			</div>
			<p class="od_list">
				<span class="od_label">美容师：</span>
				<span class="od_value"><?php echo ($res["beauty_name"]); ?></span>
			</p>
			<p class="od_list">
				<span class="od_label od_tel">联系方式：</span>
				<span class="od_value"><?php echo ($res["od_tel"]); ?></span>
			</p>
			<p class="od_list">
				<span class="od_label od_tel">服务时间：</span>
				<span class="od_value"><?php echo ($res["oservice_time"]); ?></span>
			</p>
			<?php if($res['service_type'] == 1): ?><!-- 如果是到体验店 -->
			<p class="od_list">
				<span class="od_label od_tel">体验店：</span>
				<span class="od_value"><?php echo ($res["lbs"]); ?></span>
			</p><?php endif; ?>
			<?php if($res['service_type'] == 0): ?><!-- 如果是上门服务 -->
			<table cellpadding="0" cellspacing="0" width="100%" class="od_list">
				<tr>
					<td class="od_label od_tel" nowrap valign="top">服务地点：</td>
					<td class="od_value"><?php echo ($res["address"]); ?></td>
				</tr>
			</table><?php endif; ?>
			<p class="od_list">
				<span class="od_label od_tel">代金券：</span>
				<span class="od_value">使用<span class="od_coupon">20</span>元代金券</span>
			</p>
			<p class="od_list">
				<span class="od_label od_tel">服务时间：</span>
				<span class="od_value"><?php echo ($res["pib_time"]); ?></span>
				<span class="od_price">
					<span class="od_label">应付金额：</span>
					<span class="od_value">￥<?php echo ($res["paymoney"]); ?></span>
				</span>
				<div class="clear"></div>
			</p>
			<p class="od_order_time">预约时间：什么鬼？？？</p>
		</div>
	</div>
	<?php if(0 == 0): ?><!--不是已完成的订单 -->
		<footer id="od_footer">
			<?php if(1 == 0): ?><div class="od_btn" id="od_arrive">我已到达</div><?php endif; ?>
			<?php if(1 == 1): ?><!-- 未开始服务 -->
				<div class="od_btn" id="od_leave">我已离开</div><?php endif; ?>
		</footer><?php endif; ?>
	<script type="text/javascript" src="/meirong/Public/Wechat/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="/meirong/Public/Wechat/js/global.js"></script>
	<script type="text/javascript" src="/meirong/Public/Wechat/api/js/work.js"></script>
	<script language="javascript">
		 $(document).ready(work_obj.order_detail);
	</script>
</body>
</html>